package com.future.client.consumer.api;

import com.future.client.consumer.api.impl.HystrixClientConfigration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenli
 * @create 2018-05-21
 */
@FeignClient(name = "eureka-client-provider", fallback = HystrixClientConfigration.class)
public interface HystrixClientRemoteInterface {
    @RequestMapping(value = "/getTeamInfo", method = RequestMethod.GET)
    public String getTeamInfo(@RequestParam("teamName") String teamName);
}